import service from "@/utils/request.js";

/*export const adminApi = {
    list(conditions) {
        return axios.get('http://localhost:8080/admin/list', {params: conditions}).then(response => {
            console.log(response.data)
            let result = response.data;
            /!*if (result.code == 0) {
                //adminList.value = result.data
                return result.data
            }*!/
            return result
        }).catch(error => {

        })
    }
}*/

export const adminApi = {
    list(conditions) {
        return service.get('/admin/list', {params: conditions});
    }
}